<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo13-vue全局组件</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
     <runoob></runoob>
     <mytag></mytag>
   </div>

</body>

<script type="application/javascript">
  Vue.component('runoob',{
    template: '<h1>自定义组件，需要先写Vue.component进行注册，通过构建Vue，再创建组件是无法成功的</h1>'
  });
  Vue.component('mytag',{
    template: "<span>it's ok</span>"
  })
  var vm = new Vue({
    el: "#app"
  });


</script>
</html>
